<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Argentum Web</title>
</h:head>

<h:body>
	<p:panel header="Negociações" footer="Argentum Web">
		 
		
		<p:lineChart value="#{argentumBean.modeloGrafico}" legendPosition="e" title="PETR4"/>
		
		
		<h:form id="listaNegociacao">
			<p:dataTable paginator="true" rows="15" var="negociacao"
				value="#{argentumBean.negociacoes}">

				<!-- aqui vamos definir as colunas -->
				<p:column sortBy="#{negociacao.preco}" headerText="Preço">
					<h:outputText value="#{negociacao.preco}" />
				</p:column>

				<p:column headerText="Quantidade">
					<h:outputText value="#{negociacao.quantidade}" />
				</p:column>

				<p:column headerText="Volume">
					<h:outputText value="#{negociacao.volume}" />
				</p:column>

				<p:column sortBy="#{negociacao.data}" headerText="Data">
					<h:outputText value="#{negociacao.data.time}">
						<f:convertDateTime pattern="dd/MM/yyyy" />
					</h:outputText>
				</p:column>
			</p:dataTable>
		</h:form>
	</p:panel>
</h:body>
</html>